<?php

class Model_Store extends PhalApi_Model_NotORM
{

    public function getConfig()
    {
        $sql = "SELECT id,title,kewords,description,width,height,min_height,store_footer,REPLACE(REPLACE(`advert_imgs`, CHAR(10), ''), CHAR(13), '') as advert_imgs FROM store";
        $params = array();
        return $this->getORM()->query($sql, $params)->fetch();
    }

    public function getWithCache()
    {

    }

    protected function getTableName($id)
    {
        return 'store';
    }
}
